package com.bang.study.test;

import com.bang.study.day01.BubbleSort;
import com.bang.study.day01.InsertionSort;
import com.bang.study.day01.SelectionSort;
import com.bang.study.util.ArrayUtil;
import com.bang.study.util.TestUtil;

/**
 * @Auther: Bang
 * @Date: 2019/9/22 12:53
 * @Description:
 */
public class Main {

    public static void main(String[] args) throws Exception {
        Integer[] arr = ArrayUtil.generateRandomArray(10000, 0, 1000000);
        TestUtil.test(SelectionSort.class, org.apache.commons.lang3.ArrayUtils.clone(arr));
        TestUtil.test(InsertionSort.class,org.apache.commons.lang3.ArrayUtils.clone(arr));
        InsertionSort.sortFor(org.apache.commons.lang3.ArrayUtils.clone(arr));
        TestUtil.test(BubbleSort.class,org.apache.commons.lang3.ArrayUtils.clone(arr));
    }
}
